
class Module {
protected:
    std::string id; // 模块编号

public:
    void setId(const std::string& newId) { id = newId; }
    std::string getId() const { return id; }

    virtual void print() const = 0;
    virtual void saveToFile(const std::string& filename) const = 0;
};